<?php
include("../libreria/config.php");
include("../libreria/db.php");
?>
<html>
	<head>	
		<title>Estudiantes</title>
		<link type="text/css" href="../jquery/css/redmond/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../jquery/css/redmond/estilostv.css" media="all"/>		
		<script type="text/javascript" src="../jquery/js/jquery-1.5.1.min.js"></script>
		<script type="text/javascript" src="../jquery/js/jquery-ui-1.8.13.custom.min.js"></script>
		<script type="text/javascript" src="../jquery.lightbox_me.js"></script>
	</head>
<body>
<center>
<div id="users-contain" class="ui-widget">
	<h1>Estudiantes:</h1>
	<table id="users" class="ui-widget ui-widget-content">
		<thead>
			<tr class="ui-widget-header ">
				<th>Matricula</th>
				<th>Nombre</th>
				<th>Direccion</th>
				<th>Tutor</th>
				<th>Telefono Tutor</th>
				<th>Curso</th>
				
			</tr>
		</thead>
		<tbody>
			<?php
				$sql = "select * from estudiantes";
				$result = dbQuery($sql);
				//<td><a href='asignaturas.php?id=$row[id_materia]'>Modificar</a></td>
				while($row = dbFetchAssoc($result))
				{
					echo "<tr>
							<td>".$row['matricula']."</td>
							<td>".$row['nombre']." ".$row['apellido']."</td>
							<td>".$row['direccion']."</td>
							<td>".$row['tutor']."</td>
							<td>".$row['teltutor']."</td>
							<td>".$row['curso']."</td>							
						<tr>						
						";			
				}
mysql_free_result($result);				
			?>
		</tbody>
	</table>
</div>
</center>
</body>